import { createPinia } from "pinia";
import piniaPersist from "pinia-plugin-persistedstate";

import useUserStore from "./modules/user";

export const useStore = () => ({
  user: useUserStore(),
});

const pinia = createPinia();
pinia.use(piniaPersist); //使用持久化插件

export default pinia;
